import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/home/home.vue'
import Ha from '@/views/home/ha.vue'
import Hb from '@/views/home/hb.vue'
import Hc from '@/views/home/hc.vue'
import Hd from '@/views/home/hd.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,
      children:[
        {path: 'ha',component: Ha,},
         {path: 'hb',component: Hb,},
          {path: 'hc',component: Hc,},
           {path: 'hd',component: Hd,},
      ]
    },
    
  ],
})

export default router
